﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Benefit.Models.Day;

namespace Benefit.Interface.Day
{
    public interface IGroupDayChange
    {

        /// <summary>
        /// 删除当日所有记录
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        void Delete(int tradeHistoryId);

        /// <summary>
        /// 保存小组累计值
        /// </summary>
        /// <param name="tradeHistoryId">插入时间编号</param>
        /// <param name="pdate">插入时间</param>
        void InitGroupDaySum(int tradeHistoryId, string pdate);

        GroupDayChange GetGroupDayChange(int groupId, int tradeHistoryId);
        GroupDayChange GetGroupDayChange(int groupId, int day, int month, int year);
        List<GroupDayChange> GetGroupDayChange(int groupId, int month, int year);


        List<GroupDayChange> GetCompanyDayChange(int day, int month, int year);
    }
}
